Skip to content

Fix dup modmaps taking into account macro test targets. #8524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

dschaefer2
Copy link
Member

In my previous attempt to fix the duplicate modulemaps from C library dependencies of macros/plugins and destination targets, I didn't take into account test targets depending on macros, i.e. macro tests. In these cases the modulemap flags do need to pass through to the tests. This was discovered in swift-foundation which couldn't find the _SwiftSyntaxCShims module map.

Fixed this my moving the traversing link dependencies a layer lower since we need access to the parent node during traversal and this is available in the successor methods. Cleaned up my previous attempt.

In my previous attempt to fix the duplicate modulemaps from C
library dependencies of macros/plugins and destination targets,
I didn't take into account test targets depending on macros,
i.e. macro tests. In these cases the modulemap flags do need to
pass through to the tests. This was discovered in swift-foundation
which couldn't find the _SwiftSyntaxCShims module map.

Fixed this my moving the traversing link dependencies a layer
lower since we need access to the parent node during traversal
and this is available in the successor methods. Cleaned up my
previous attempt.
@dschaefer2 dschaefer2 merged commit bc72d82 into swiftlang:main Apr 30, 2025
6 checks passed
@dschaefer2 dschaefer2 deleted the fix-dup-modmaps-and-tests branch April 30, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants